package com.util;


import javax.servlet.http.HttpSession;

public class UserUtil {
    
    public static Integer getUserNum(HttpSession session) {
        return (Integer) session.getAttribute("Num");
    }
    
    public static void setUserNum(HttpSession session , Integer u_num){
        session.setAttribute("Num",u_num);
    }
    
    public static void closeSession(HttpSession session){
        session.invalidate();
    }
    
    public static String getLoginNum(HttpSession session) {
        return (String) session.getAttribute("u_phone");
    }
    
    public static void setLoginNum(HttpSession session , String u_phone){
        session.setAttribute("u_phone",u_phone);
    }
    
}
